<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">

  <title></title>

  <link rel="stylesheet" href="../../lib/mdui/css/mdui.min.css"/>
  <link rel="stylesheet" href="../../lib/element/index.css"/>
  <link rel="stylesheet" href="../../lib/common/app.css"/>


  <script src="../../lib/jquery/jquery-3.3.1.min.js"></script>
  <script src="../../lib/mdui/js/mdui.min.js"></script>
  <script src="../../lib/vue/vue.min.js"></script>
  <script src="../../lib/element/index.js"></script>



</head>
<body class="mdui-appbar-with-toolbar mdui-theme-accent-indigo">



  <div class="mdui-appbar mdui-appbar-fixed">
    <div class="mdui-toolbar mdui-color-indigo">
      <!-- <a href="javascript:;" class="mdui-btn mdui-btn-icon"><i class="mdui-icon material-icons">menu</i></a> -->
      <a href="javascript:;" class="mdui-typo-headline">串口远程调试工具</a>

      <div class="mdui-toolbar-spacer"></div>

    </div>

  </div>

  <div class="mdui-container">
    <div id="SerialSettings"></div>
  </div>


  <template id="TempSerialSettings">



    <div style="padding-top: 50px;">

          <select id="SerialSettingsSerialName" class="mdui-select mdui-m-y-3" mdui-select v-model="serial" style="width: 100%">
            <option v-for="item in serialList" :value="item.name">{{item.name}}</option>
          </select>
          <br><br>

          <select id="SerialSettingsBaudrate" class="mdui-select mdui-m-y-3" mdui-select v-model="baudrate" style="width: 100%">
            <option v-for="item in BaudratelList" :value="item">{{item}}</option>
          </select>
          <br><br>

          <div class="mdui-textfield">
            <label class="mdui-textfield-label">Server</label>
            <input class="mdui-textfield-input" type="server address" v-model="server" :value="server"/>
          </div>

          <div class="mdui-textfield">
            <label class="mdui-textfield-label">Port</label>
            <input class="mdui-textfield-input" type="server address" v-model="port" :value="port"/>
          </div>
          <br><br>

          <button v-if="!isrunning" @click="start" class="mdui-btn mdui-btn-block mdui-color-theme-accent mdui-ripple">连 接</button>
          <button v-if="isrunning" @click="stop" class="mdui-btn mdui-btn-block mdui-color-pink-accent mdui-ripple">停 止</button>
          <br><br>

          <div v-if="msg" class="mdui-chip">
            <span class="mdui-chip-icon"><i class="mdui-icon material-icons">error</i></span>
            <span class="mdui-chip-title">{{msg}}</span>
          </div>
    </div>

  </template>




<script src="js/index.js"></script>
</body>
</html>
